package com.education.wisdom.service.impl;

import com.education.wisdom.mapper.OrderPaperMapper;
import com.education.wisdom.pojo.OrderPaper;
import com.education.wisdom.service.OrderPaperService;
import com.education.wisdom.vo.OrderPaperVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 试卷表 服务层实现
 *
 * @author d
 * @date 2021-03-04 15:45:18
 */
@Service
public class OrderPaperServiceImpl implements OrderPaperService {

    @Autowired
    private OrderPaperMapper orderPaperMapper;

    //查询试卷表信息
    @Override
    public OrderPaper selectOrderPaperById(Integer id) {
        return orderPaperMapper.selectOrderPaperById(id);
    }

    // 查询试卷表列表
    @Override
    public List<OrderPaper> selectOrderPaperList(OrderPaper orderPaper) {
        return orderPaperMapper.selectOrderPaperList(orderPaper);
    }

    // 新增试卷表
    @Override
    public int insertOrderPaper(OrderPaper orderPaper) {
        return orderPaperMapper.insertOrderPaper(orderPaper);
    }

    @Override
    public int insertPaperTest(OrderPaperVo orderPaper) {
        return orderPaperMapper.insertOrderPaper(orderPaper);
    }

    //修改试卷表
    @Override
    public int updateOrderPaper(OrderPaper orderPaper) {
        return orderPaperMapper.updateOrderPaper(orderPaper);
    }

    //删除试卷表对象
    @Override
    public int deleteOrderPaperByIds(String[] ids) {
        return orderPaperMapper.deleteOrderPaperByIds(ids);
    }

    @Override
    public int deleteOrderPaperById(Integer id) {
        return orderPaperMapper.deleteOrderPaperById(id);
    }

    @Override
    public List<OrderPaper> selectOrderPaperList1() {
        return orderPaperMapper.selectOrderPaperList1();
    }
}